All Questions
Tagged with apiwoocommerce-offtopic
34 questions
0votes
0answers
61views
Creating a brand attribute as a variable
I have a script below where I dynamically need to replace two values and I can't get it to work. The values can be found as Wooccomerce product attribute values on the product page. For instance, see ...
0votes
1answer
2kviews
Woocommerce REST API - add filter to set maximum query per page for product brands [closed]
I'm trying to list all my product brands in a single page, currently i'm able to get only 100 brands per page by using wp-json/wc/v3/products/brands?per_page=100. but if i set per_page=200, i'm ...
0votes
2answers
9kviews
How can I get all the woocommerce api orders [closed]
When I do a get with my postman to https://page.com/wp-json/wc/v3/orders It only returns 10 results, and in woocommerce I have 2000 orders How can I get those 2000 orders?
2votes
0answers
597views
Create or Update thousands of woocommerce products via PHP
I have client with a cash register in the store. That register has an API from which I'm retrieving over 5000 products and syncing them with online store. I wrote plugin that triggers cron job every ...
0votes
1answer
220views
Update Customer JWT Woocommerce
I am using JWT to make call threw the woocommerce api. I created a kind of bot which is an admin user which I connect through JWT api to get a token. With the token at the moment I am doing calls to ...
0votes
1answer
1kviews
Getting Wordpress fatal error when hitting WooCommerce API
I have made a script that extracts products from WooCommerce and a script that update stock in WooCommerce. The shop have about 750 parent products and total number of variants under these parents are ...
0votes
1answer
1kviews
wc_get_products() not return the images details
When I try to fetch products using the official REST API, returned product contains the a property named images which is an array and contains the URL to image of product. But when I fetch using this ...
0votes
0answers
1kviews
wc_get_products() return empty object
I'm trying to get all the products that exists in database, but my code return empty objects. just for the sake of testing, first I'm trying to get only 10 products, here is my code add_action('...
0votes
0answers
747views
woocommerce REST api on the website's front-end
I want to use AJAX for product listing (with "show more" functionality), AJAX based search etc. on the front-end of a Wordpress/Woocommerce website. It seems like a simplest approach here ...
0votes
1answer
41views
Woocommerce, finding the ordinal number of a purchase for a certain product
we are developing a complex Woocommerce website and an app which uses V3 API. Being sold products very valuable, we need to know the ordinal number of a purchase for each product. For example, we'd ...
1vote
1answer
327views
Woocommerce REST API allow normal users make an order
We are making an application that can make an order from the mobile for Woocommerce API, when I used a loggedin user with token for validate the authentication, its showing error: Sorry, you cannot ...
0votes
0answers
2kviews
Woocommerce API REST search by multiple keywords
0 I am working on a page for search Woocommerce products with the REST API. But I have a question about how I can search on keywords. Product 1: Milkshake vanille / apple Product 2: Milkshake If I ...
1vote
1answer
242views
How to modify WCMP Rest API response?
I had tried the register_rest_field() to modify the Rest API response of the WCMP plugin, but it seems that this function applies only to the default wordpress REST API (wp/v2). The purpose of ...
1vote
0answers
401views
Woocommerce api: create product with images - bad request
I am trying to create a product with images via the Woocommerce Rest API but I get bad request: Here is how I am preparing the images array: //IMAGES $images = []; //Get the featured image ...
0votes
1answer
431views
WordPress SMS API integration without plugin error
I have created a code for WordPress to integrate my custom SMS API. The API URL works fine when I type it on the URL bar; but when it in the code, the API URL will not call. So this code not working ...